Optimal. Leaf size=58 \[ -\frac {2^{n+\frac {1}{2}} \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{2}-n;\frac {3}{2};\frac {1}{2} (1-\sin (c+d x))\right )}{d \sqrt {\sin (c+d x)+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2651} \[ -\frac {2^{n+\frac {1}{2}} \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{2}-n;\frac {3}{2};\frac {1}{2} (1-\sin (c+d x))\right )}{d \sqrt {\sin (c+d x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2651
Rubi steps
\begin {align*} \int (1+\sin (c+d x))^n \, dx &=-\frac {2^{\frac {1}{2}+n} \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{2}-n;\frac {3}{2};\frac {1}{2} (1-\sin (c+d x))\right )}{d \sqrt {1+\sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 88, normalized size = 1.52 \[ \frac {\sqrt {2} \cos (c+d x) (\sin (c+d x)+1)^n \, _2F_1\left (\frac {1}{2},n+\frac {1}{2};n+\frac {3}{2};\frac {1}{4} \cos ^2(c+d x) \csc ^2\left (\frac {1}{4} (2 c+2 d x-\pi )\right )\right )}{(2 d n+d) \sqrt {1-\sin (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.45, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (\sin \left (d x + c\right ) + 1\right )}^{n}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (\sin \left (d x + c\right ) + 1\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.47, size = 0, normalized size = 0.00 \[ \int \left (1+\sin \left (d x +c \right )\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (\sin \left (d x + c\right ) + 1\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int {\left (\sin \left (c+d\,x\right )+1\right )}^n \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (\sin {\left (c + d x \right )} + 1\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________